-- GENERATED SPELL FOR [Death Cultist] --


function spell0_8547(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(16583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8547', 613, 1)
end

function Sorts_8547(pUnit, Event)
local choix_sorts_8547 = math.random(0, 0)
if choix_sorts_8547 == 0 then
pUnit:RegisterEvent('spell0_8547', 1, 1)
end
end

function mob8547_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8547', math.random(1500, 3000), 1)
end

function mob8547_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8547_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8547_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8547, 1, 'mob8547_Action')
RegisterUnitEvent(8547, 2, 'mob8547_Leave')
RegisterUnitEvent(8547, 3, 'mob8547_Kill')
RegisterUnitEvent(8547, 4, 'mob8547_Die')
